package com.infosystem.demo.config;

public enum StatusCodeOss {
    SUCCESS(200, "success"),
    BAD_REQUEST(400, "bad request"),
    UNAUTHORIZED(401, "unauthorized"),
    FORBIDDEN(403, "forbidden"),
    NOT_FOUND(404, "not found"),
    INTERNAL_SERVER_ERROR(500, "error"),
    SERVICE_UNAVAILABLE(503, "service unavailable");
    private int code;
    private String message;
    StatusCodeOss(int code, String message) {
        this.code = code;
        this.message = message;
    }
    StatusCodeOss(int code) {
        this.code = code;
    }
    StatusCodeOss(String message){
        this.message = message;
    }
    public int getCode() {
        return this.code;
    }
    public String getMessage() {
        return this.message;
    }
    public String setMessage(String message) {
        return this.message = message;
    }
    public int setCode(int code) {
        return this.code = code;
    }
}
